package com.learn.SingleTon;

/**
 * 使用静态内部类实现
 */
public class Holder {

    private static class LazyHolder{
        private static final Holder hodler = new Holder();
    }

    private Holder() {}

    public static Holder getInstance(){
        return LazyHolder.hodler;
    }
}
